Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: change app from http listener to mqtt client #5

Merged
merged 3 commits into from
Sep 24, 2024
Merged

feat: change app from http listener to mqtt client #5

merged 3 commits into from
Sep 24, 2024

Conversation

thalesmg
Copy link
Collaborator

@thalesmg thalesmg commented Sep 18, 2024

Note: the MQTT client used here uses MQTTv3.1.1; will need a bit more changes if we need to switch to MQTTv5 (e.g., to set Session-Expiry-Interval and whatnot)

@thalesmg thalesmg marked this pull request as ready for review September 19, 2024 12:30
@thalesmg thalesmg requested a review from id September 19, 2024 16:19
@thalesmg
Copy link
Collaborator Author

It's possible to use persistent sessions even with MQTTv3.1.1 by setting clean_start = false when connecting, and setting session_expiry_interval in the zone config.
Currently, here, we're not setting clean_start.

@@ -15,21 +15,51 @@
:scheme s/Str
:role s/Str})
Copy link
Collaborator

@id id Sep 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

role is unnecessary in the config, it's not used in streaming

@thalesmg thalesmg merged commit 7c64964 into main Sep 24, 2024
1 check passed
@thalesmg thalesmg deleted the mqtt branch September 24, 2024 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants